package models;
 
import java.util.*;
import javax.persistence.*;
 
import play.db.jpa.*;
 
@Entity
public class Comment extends Model {
 
	@ManyToOne
    public User author;
     
    @Lob
    public String content;
    
    @ManyToOne
    public Event event;
    
    public Comment(Event event, User user, String content) {
        this.event = event;
        this.author = user;
        this.content = content;
    }
 
}